package com.lxb.educenter.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;


/**
 * 登录对象封装
 *
 * @author xuebin.li
 * @createTime 2022/12/20 22:15
 */
@Data
@ApiModel(value="登录对象", description="登录对象")
public class LoginDto {

    @ApiModelProperty(value = "邮箱")
    @NotEmpty(message = "邮箱不能为空")
    @Length(message = "邮箱字符数在 {min}~{max} 之间 ",min = 8,max = 18)
    private String email;

    @ApiModelProperty(value = "密码")
    @NotEmpty(message = "密码不能为空")
    @Length(message = "密码字符数在 {min}~{max} 之间 ",min = 6, max = 13)
    private String password;
}
